<?php
	$db               = new model_product;
	$pager            = new libraries_pager();
	$data             = array();
	$data['title']    = "Danh mục";
	$data['template'] = "category/list_cate";
	$limit            = 20;
	$pager->set_link("index.php?mod=category&act=list");
	$total            = $db->total_group();
	$start            = $pager->start();
	$pages            = $pager->page($total,$limit);
	$data['pagelist'] = $pager->listpage($pages,$start,$limit);
	$data['list']     = $db->list_groups($start,$limit);
	loadview("layout",$data);
